package com.example.blindinterfacetest;

import android.media.AudioManager;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.speech.tts.TextToSpeech;

public class AudialHome extends Activity {
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_audial_home);
        
        //Gıve music volume control to volume buttons when app is in front
        setVolumeControlStream(AudioManager.STREAM_MUSIC);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_blind_interface_test, menu);
        return true;
    }

    @Override
    public void onResume(){
    	super.onResume();
		((BlindInterfaceTest)getApplication()).tts.speak("Welcome to Audial Mode!", TextToSpeech.QUEUE_ADD, null);
    }
}
